<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="/common/head :: head" />
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="overtime">
            <input id="otId" th:value="${overtime?.otId}" type="hidden">
            <div class="row">
                <div class="col-sm-12">
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开始日期</label>
                        <div class="col-sm-6">
                            <input class="form-control layer-date" id="otStrDate" name="otStrDate" type="text" th:value="${overtime?.otStrDate}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">结束日期</label>
                        <div class="col-sm-6">
                            <input class="form-control layer-date" id="otEndDate" name="otEndDate" type="text"  th:value="${overtime?.otEndDate}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">加班原因</label>
                        <div class="col-sm-6">
                            <textarea class="form-control" id="otMemo" name="otMemo" type="text" th:text="${overtime?.otMemo}"></textarea>
                        </div>
                    </div>
                </div>
            </div>


            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <button type="button" class="btn btn-info" shiro:hasPermission ="/attendance/overtime/to_add" onclick="GridDlg.Submit()">
                        <i class="fa fa-check"></i>&nbsp;提交
                    </button>
                    <button type="button" class="btn btn-danger" onclick="GridDlg.close()">
                        <i class="fa fa-eraser"></i>&nbsp;取消
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<footer th:replace="/common/footer :: footer"></footer>
<script th:src="@{/js/common/base-grid-dlg.js}"></script>
<script th:src="@{/js/attendance/overtime/overtime-dlg.js}"></script>
</body>
</html>
